?><?
class cls_language_item extends cls_entity{  

   function entity(){
     return "language";
   }

   function load($row){
     $this->id     =$row["language_id"]; 
     $this->name   =$row["name"]; 
     $this->ru_name=$row["ru_name"];
     $this->domen  =$row["domen"];       
     $this->curent =$row["curent"];       
   }

   function set_value($name,$value){
     if(isset($this->$name)){
       $languages=&get_entity("cls_language");
       ExecSQL("update ".$this->entity()." set $name='$value' where ".$this->entity()."_id=".$this->id.";");
       $languages->changed();     
     }   
   }

}